package com.fancy.learncenter.ui.adapter;

import android.content.Context;
import android.widget.TextView;

import com.facebook.drawee.view.SimpleDraweeView;
import com.fancy.learncenter.R;
import com.fancy.learncenter.bean.AudioBean;
import com.fancy.learncenter.bean.MyCollectionDataBean;
import com.fancy.learncenter.ui.adapter.base.CommonRecycleViewAdapter;
import com.fancy.learncenter.ui.adapter.base.CustomViewHold;

import java.util.List;

/**
 * Created by Hyy on 2017/1/9.
 */

public class FragmentGoodsActivityAdapter extends CommonRecycleViewAdapter<MyCollectionDataBean.CollectionVOListBean> {
    public FragmentGoodsActivityAdapter(Context mContext, List<MyCollectionDataBean.CollectionVOListBean> itemDatas) {
        super(mContext, R.layout.fragment_collection_goods_item, itemDatas);
    }

    @Override
    public void bindView(CustomViewHold customViewHold, MyCollectionDataBean.CollectionVOListBean item, int position) {
        SimpleDraweeView simpleDraweeView = customViewHold.getView(R.id.simpleDraweeView);
        simpleDraweeView.setImageURI(item.getImgUrl());

        TextView name = customViewHold.getView(R.id.name);
        name.setText(item.getTitle());
    }
}
